// import  fetch from 'node-fetch'
const dictionariesPromise = fetch('http://localhost:3000/dictionaries').then(toJson);
const todosPromise = fetch('http://localhost:3000/todoss').then(toJson);

function logIdentity(x){
  console.log(x);
  return x;
}

function toJson(response){
  return response.json();
}

Promise.all([
  dictionariesPromise,
  todosPromise
]).then(logIdentity);

